#ifndef ___BOARD_H___
#define ___BOARD_H___

#include "os/types.h"
void bsp_init(void);
void wdog_reload(void);
void hall_io_init(void);
u8 board_get_hall1(void);
u8 board_get_hall2(void);
u8 board_get_hall3(void);
void board_hallirq_pending(void);
bool board_is_brake(void);
bool board_is_lockmotor(void);
bool board_is_repair(void);
bool board_is_p_mode(void);
u8 board_gear_mode(void);
u8 mcu_chip_id(u8 *buff);
void flash_write_magic(u32 magic);
int board_detect_phase_connect(float vol);
void board_led_enable(bool enable);
void rs485_rx_enable(bool rx);
bool rs485_rx_is_enabled(void);

#endif /* ___BOARD_H___ */

